<input type='hidden' id='goodsId' class='j-ipt' value='{$object["goodsId"]}'/>
<table class='wst-form'>
  <tr>
     <th>商品名称<font color='red'>*</font>：</th>
     <td>
        <input type="text" class='j-ipt ipwd' id='goodsName' maxLength='150' data-rule='商品名称:required;' value="{$object["goodsName"]}">
     </td>
  </tr>
  <tr>
     <th>商品类型<font color='red'>*</font>：</th>
     <td>
       <select id='goodsType' class='j-ipt ipwd' onchange="changeGoodsType(this.value)" {if $object["goodsId"]>0}disabled{/if}>
         <option value='0' {if($object["goodsType"]==0)}selected{/if}>实物商品</option>
         <option value='1' {if($object["goodsType"]==1)}selected{/if}>虚拟商品</option>
       </select>
     </td>
  </tr>
  <tr>
     <th>商城分类<font color='red'>*</font>：</th>
     <td>
         <select id="cat_0" class='ipt j-goodsCats' level="0" onchange="WST.ITGoodsCats({id:'cat_0',val:this.value,isRequire:true,className:'j-goodsCats',afterFunc:'lastGoodsCatCallback'});getBrands('brandId',this.value)" style="width: 395px">
          <option value="">-请选择-</option>
          {volist name=":WSTShopApplyGoodsCats(0)" id="vo"}
          <option value="{$vo['catId']}">{$vo['catName']}</option>
          {/volist}
       </select>
     </td>
  </tr>
  <tr>
     <th>本店分类：</th>
     <td>
         <select id="shopCatId1" class='j-ipt' onchange="getShopsCats('shopCatId2',this.value,'');" style="width: 395px">
            <option value="">-请选择-</option>
            {volist name=":WSTShopCats(0)" id="vo"}
            <option value="{$vo['catId']}" {if $object['shopCatId1']==$vo['catId']}selected{/if}>{$vo['catName']}</option>
            {/volist}
         </select>
         <select id='shopCatId2' class='j-ipt' style="width: 395px">
             <option value=''>请选择</option>
         </select>
     </td>
  </tr>
  <tr>
     <th>品牌：</th>
     <td>
         <select id="brandId" class='j-ipt ipwd'>
            <option value="0">-请选择-</option>
         </select>
     </td>
  </tr>
  <tr>
    <th>商品图片<font color='red'>*</font>：</th>
    <td>
        <input type="text" id='goodsImg' readonly="readonly" value='{if $object["goodsImg"]!=''}{$object["goodsImg"]}{else}{:WSTConf('CONF.goodsLogo')}{/if}' class="j-ipt" style="float: left; width: 655px;" />
        <div id='goodsImgPicker' style="float: left;margin-top: 5px;">上传</div><span id='uploadMsg'></span>
        <div id='goodsImgBox' style='margin-bottom:5px; float: left; height: 30px; margin-left: 5px;'>
            <span class='weixin'>
                  <img class='img' style='height:16px;width:18px;' src='__STATIC__/images/upload-common-select.png'>
                  <img class='imged'  id='preview'  style='max-height:150px;max-width: 200px; border:1px solid #dadada; background:#fff' src="__RESOURCE_PATH__/{if $object['goodsImg']!=''}{$object['goodsImg']}{else}{:WSTConf('CONF.goodsLogo')}{/if}">
                </span>
        </div>
        <div class="f-clear"></div>
        <span class='msg-box' id='msg_goodsImg'></span>
    </td>
  </tr>
  <tr>
    <th></th>
    <td><span>(图片大小为800x800，格式为jpg或者png)</span></td>
  </tr>
  <tr>
    <th>商品视频：</th>
    <td>
      <input type='text' id='goodsVideo' class='j-ipt'  value='{$object["goodsVideo"]}' readonly="readonly" style="float: left; width: 655px;" />
      <div id='goodsVideoPicker' style="float: left;margin-top: 5px;">上传</div>
      <span id='uploadVideoMsg'></span>
      
      <div id='goodsVedioBox' style='margin-bottom:5px; float: left; height: 30px; margin-left: 5px;'>
          <span  class='weixin'>
            <img class='img' style='height:16px;width:18px;' src='__STATIC__/images/upload-common-select.png'>
            <video  class='imged' id='goodsVideoPlayer' src="__RESOURCE_PATH__/{$object["goodsVideo"]}" controls="controls"  style='max-height:150px;max-width: 200px; border:1px solid #dadada; background:#fff'></video>
            <span class="vedio-del" {if $object["goodsVideo"]!=''}style='display:inline-block'{/if} onclick="javascript:clearVedio(this)"></span>
          </span>
          
      </div>
    </td>
  </tr>
  <tr>
    <th></th>
    <td><span>(视频格式为3gp,mp4,rmvb,mov,avi)</span></td>
  </tr>
  <tr>
     <th>商品编号<font color='red'>*</font>：</th>
     <td><input type='text' class='j-ipt ipwd' id='goodsSn' value='{$object["goodsSn"]}' maxLength='20' data-rule='商品编号:required;'/></td>
  </tr>
  <tr>
     <th width='150'>商品货号<font color='red'>*</font>：</th>
     <td>
        <input type='text' class='j-ipt ipwd' id='productNo' value='{$object["productNo"]}' maxLength='20' data-rule='商品货号:required;'/>
     </td>
  </tr>
  <tr>
     <th>市场价格<font color='red'>*</font>：</th>
     <td><input type='text' class='j-ipt ipwd' id='marketPrice' value='{$object["marketPrice"]}' maxLength='10' data-rule='市场价格:required;price' data-rule-price="[/^(([0-9]+\.[0-9]*[1-9][0-9]*)|([0-9]*[1-9][0-9]*\.[0-9]+)|([0-9]*[1-9][0-9]*))$/, '价格必须大于0']" onblur="javascript:WST.limitDecimal(this,2)" onkeypress="return WST.isNumberdoteKey(event)" onkeyup="javascript:WST.isChinese(this,1)"/></td>
  </tr>
  <tr>
     <th>店铺价格<font color='red'>*</font>：</th>
     <td><input type='text' class='j-ipt ipwd' id='shopPrice' value='{$object["shopPrice"]}' maxLength='10' data-rule='店铺价格:required;price' data-rule-price="[/^(([0-9]+\.[0-9]*[1-9][0-9]*)|([0-9]*[1-9][0-9]*\.[0-9]+)|([0-9]*[1-9][0-9]*))$/, '价格必须大于0']" onblur="javascript:WST.limitDecimal(this,2)" onkeypress="return WST.isNumberdoteKey(event)" onkeyup="javascript:WST.isChinese(this,1)"/></td>
  </tr>
  <tr>
     <th>成本价：</th>
     <td><input type='text' class='j-ipt ipwd' id='costPrice' value='{$object["costPrice"]}' maxLength='10' onblur="javascript:WST.limitDecimal(this,2)" onkeypress="return WST.isNumberdoteKey(event)" onkeyup="javascript:WST.isChinese(this,1)"/></td>
  </tr>
  <tr id='goodsStockTr' {if($object["goodsType"]==1)}style='display:none'{/if}>
     <th>商品库存<font color='red'>*</font>：</th>
     <td><input type='text' class='j-ipt ipwd' id='goodsStock' value='{$object["goodsStock"]}' maxLength='10' data-rule='商品库存:required;integer[+0]' onkeypress="return WST.isNumberKey(event)" onkeyup="javascript:WST.isChinese(this,1)"/></td>
  </tr>
  <tr>
     <th>预警库存<font color='red'>*</font>：</th>
     <td colspan='2'><input type='text' class='j-ipt ipwd' id='warnStock' value='{$object["warnStock"]}' maxLength='10' data-rule='预警库存:required;integer[+0]' onkeypress="return WST.isNumberKey(event)" onkeyup="javascript:WST.isChinese(this,1)"/></td>
  </tr>
  <tr>
     <th>商品单位<font color='red'>*</font>：</th>
     <td><input type='text' class='j-ipt ipwd' id='goodsUnit' value='{$object["goodsUnit"]}' maxLength='10' data-rule='商品单位:required;'/></td>
  </tr>
  <tr id='goodsWeightTr' {if($object["goodsType"]==1)}style='display:none'{/if}>
     <th>商品重量(kg)<font color='red'>*</font>：</th>
     <td><input type='text' class='j-ipt ipwd' id='goodsWeight' value='{$object["goodsWeight"]}' maxLength='10' onblur="javascript:WST.limitDecimal(this,2)" onkeypress="return WST.isNumberdoteKey(event)" onkeyup="javascript:WST.isChinese(this,1)"/></td>
  </tr {if($object["goodsType"]==1)}style='display:none'{/if}>
  <tr id='goodsVolumeTr' {if($object["goodsType"]==1)}style='display:none'{/if}>
     <th>商品体积(m³)<font color='red'>*</font>：</th>
     <td><input type='text' class='j-ipt ipwd' id='goodsVolume' value='{$object["goodsVolume"]}' maxLength='10' onblur="javascript:WST.limitDecimal(this,2)" onkeypress="return WST.isNumberdoteKey(event)" onkeyup="javascript:WST.isChinese(this,1)"/></td>
  </tr>
  <tr>
     <th>SEO关键字：</th>
     <td><input type='text' class='j-ipt ipwd' id='goodsSeoKeywords' maxLength='100' value='{$object["goodsSeoKeywords"]}' /></td>
  </tr>
  <tr>
     <th>SEO描述：</th>
     <td><input type='text' class='j-ipt ipwd' id='goodsSeoDesc' maxLength='200' value='{$object["goodsSeoDesc"]}' /></td>
  </tr>
  <tr>
     <th>商品促销信息：</th>
     <td><input class='j-ipt ipwd' type="text" id='goodsTips' maxLength='100' value="{$object["goodsTips"]}" /></td>
  </tr>
  {:hook('shopDocumentShopEditGoods',['goodsId'=>$object["goodsId"]])}
  <tr>
     <th>商品状态<font color='red'>*</font>：</th>
     <td class="layui-form">
        <label><input type='radio' name='isSale' id="isSale-1" class='j-ipt' value='1' {if $object['isSale']==1}checked{/if} title='上架'/></label>
        <label><input type='radio' name='isSale' id="isSale-0" class='j-ipt' value='0' {if $object['isSale']==0}checked{/if} title='下架'/></label>
     </td>
  </tr>
  <tr>
     <th>商品属性：</th>
     <td class='layui-form'>
          <input id="isRecom" name='isRecom' lay-skin="primary" class="j-ipt" {if $object['isRecom']==1}checked{/if} value="1" type="checkbox" title='推荐' />
          <input id="isBest" name="isBest" lay-skin="primary" class="j-ipt" {if $object['isBest']==1}checked{/if} value="1" type="checkbox" title='精品'/>
          <input id="isNew" name="isNew" lay-skin="primary" class="j-ipt" {if $object['isNew']==1}checked{/if} value="1" type="checkbox" title='新品'/>
          <input id="isHot" name="isHot" lay-skin="primary" class="j-ipt" {if $object['isHot']==1}checked{/if} value="1" type="checkbox" title='热销'/>
     </td>
  </tr>
  <tr>
     <th>是否包邮：</th>
     <td class="layui-form">
        <label><input type='radio' name='isFreeShipping' id="isFreeShipping-1" lay-filter="isFreeShipping" class='j-ipt' value='1' {if $object['isFreeShipping']==1}checked{/if} title='包邮'/></label>
        <label><input type='radio' name='isFreeShipping' id="isFreeShipping-0" lay-filter="isFreeShipping" class='j-ipt' value='0' {if $object['isFreeShipping']==0}checked{/if} title='买家承担运费'/></label>
     </td>
  </tr>
  <tr id="shippingFeeTypeTr" {if $object['isFreeShipping']==1}style='display:none'{/if}>
     <th>计价方式<font color='red'>*</font>：</th>
     <td class="layui-form">
        <label><input type='radio' name='shippingFeeType' lay-filter="shippingFeeType" class='j-ipt' value='1' {if $object['shippingFeeType']==1}checked{/if} title='计件'/></label>
        <label><input type='radio' name='shippingFeeType' lay-filter="shippingFeeType" class='j-ipt' value='2' {if $object['shippingFeeType']==2}checked{/if} title='重量'/></label>
        <label><input type='radio' name='shippingFeeType' lay-filter="shippingFeeType" class='j-ipt' value='3' {if $object['shippingFeeType']==3}checked{/if} title='体积'/></label>
        
     </td>
  </tr>
  <tr id="shopExpressTr" {if $object['isFreeShipping']==1}style='display:none'{/if}>
     <th>快递公司<font color='red'>*</font>：</th>
     <td>
        <select id='shopExpressId' class='j-ipt ipwd'>
          <option value="">-请选择-</option>
          {volist name="shopExpressList" id="vo"}
          <option value="{$vo['id']}" {if($object["shopExpressId"]==$vo['id'])}selected{/if}>{$vo['expressName']}</option>
          {/volist}
        </select>
     </td>
  </tr>
  <tr>
     <th>商品描述<font color='red'>*</font>：</th>
     <td>
         <textarea rows="2" cols="60" id='goodsDesc' class='j-ipt' name='goodsDesc' data-rule='商品描述:required;'>{$object['goodsDesc']}</textarea>
     </td>
  </tr>
  <tr>
     <td align='center' style='text-align:center;padding-top:10px;'></td>
  </tr>
</table>